 <?php // do any authentication first, then add POST variable to session
 if($_POST) {
	 $value = $_POST['value'];
	 $var = $_POST['var'];
    $_SESSION['$var'] = $value;
	echo $var;
	echo $_SESSION['$var'];
 }
?>